package top.jasonlam.car;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;
import top.jasonlam.car.utils.Res;

/**
 * @author jasonlam
 */
@SpringBootApplication
@RestController
public class CarApplication {

    @GetMapping("/")
    public String index() {
        return "Hello World!";
    }

    @PutMapping("/testput")
    public Res testPut(){
        return Res.builder().code(0).message("put success").build();
    }

    public static void main(String[] args) {
        SpringApplication.run(CarApplication.class, args);

    }

}
